// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App'
import router from './router'

//导入iconfont图标
import './assets/iconfont/iconfont.css'

Vue.config.productionTip = false
Vue.use(ElementUI,{size:'small'});

//引用el-dialog拖动逻辑
import vueDialogDrag from '@/utils/directive' // 拖拽
vueDialogDrag.install(Vue)


//导入element-tree-grid
import ElTreeGrid from 'element-tree-grid';
Vue.component(ElTreeGrid.name,ElTreeGrid);


import TreeTable from 'vue-table-with-tree-grid';
Vue.component('TreeTable',TreeTable);

import api_helper from './utils/apihelper';
Vue.prototype.api_helper=api_helper;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
